package com.cloudcentral.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Create by Administrator
 * 2023/11/2 10:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Schema(description = "用户分页数据")
public class UserPageVO {
  @Schema(description = "ID")
  private String id;
  @Schema(description = "平台ID")
  private Long platformId;
  @Schema(description = "角色ID")
  private Long roleId;
  @Schema(description = "手机号")
  private String phone;
  @Schema(description = "用户名")
  private String username;
  @Schema(description = "密码")
  private String password;
  @Schema(description = "头像")
  private String avatar;
  @Schema(description = "性别(1:男;2:女)")
  private Integer gender;
  @Schema(description = "年龄")
  private Integer age;
  @Schema(description = "备注")
  private String remark;
  @Schema(description = "启用状态")
  private Boolean enable;
  @Schema(description = "注册时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date registerTime;
  @Schema(description = "审核时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date auditTime;
  @Schema(description = "是否审核")
  private Boolean audit;
}
